package ls.ch03.demo.demo3;

import ls.ch03.demo.demo1.NewsDao;
import ls.ch03.demo.demo1.SimpleDaoFactory;

/**
 * @author ls
 * @Date 创建时间:2022/4/9 11:07
 * 描述:
 */

public class Test3 {
    public static void main(String[] args) {
        NewsDao dao= SimpleDaoFactory.getInstance();
        NewsServiceImpl service=new NewsServiceImpl();
        service.setDao(dao);
    }
}
